/*
 * Copyright (c) 2017. 深圳掌控网络有限公司. All rights reserved.
 */

package com.yiqi.lottery.feature.mine.contract;

import com.suozhang.framework.entity.bo.PageData;
import com.suozhang.framework.framework.BasePresenter;
import com.suozhang.framework.framework.BaseView;
import com.yiqi.lottery.entity.bo.OrderBo;
import com.yiqi.lottery.entity.bo.OrderListBo;
import com.yiqi.lottery.entity.bo.RegisterBo;
import io.reactivex.Observable;

/**
 *      LIJUWEN
 * @email yiyayiyayaoljw@gmail.com
 * @date 2017/4/11 9:06
 */
public interface OrderContract {

    interface Model {

        Observable<PageData<OrderListBo>> getOrderList(int page,int type);
        Observable<PageData<OrderListBo>> getMyCopurceOrderList(int page);
    }

    interface View extends BaseView {

        void showOrderListSuccess(PageData<OrderListBo> msg);

        void showOrderListError(String msg);

        void showOrderListMoreSuccess(PageData<OrderListBo> msg);

        void showOrderListMoreError(String msg);

        void showOrderListEmpty();

    }


    interface Presenter extends BasePresenter {
        void getOrderList(int page,int type);

        void getOrderMoreList(int page,int type);

       void  getMyCopurceOrderList(int page);

        void  getMyCopurceOrdeMorerList(int page);
    }
}
